<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 1.map()方法
        // arr = ['pink', 'Jay', 'David', '周杰伦'];
        // const new_arr = arr.map(function (ele, index) {
        //     // console.log(ele);//元素
        //     // console.log(index);//索引号
        //     return ele + "YYDS";
        // });
        // console.log(new_arr);
        // 2.
    </script>
</body>

</html>